home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / program / n_b_v203.zip / TIME.TXT < prev    next >
Text File  |  1996-07-04  |  2KB  |  44 lines

  1. $if 0
  2.     ┌──────────────────────────╖                        PowerBASIC v3.20
  3.  ┌──┤          DASoft          ╟──────────────────────┬──────────────────╖
  4.  │  ├──────────────────────────╢    Copyright 1995    │ DATE: 1995-10-01 ╟─╖
  5.  │  │ FILE NAME   TIME    .TXT ║          by          ╘════════════════─ ║ ║
  6.  │  │                          ║  Don Schullian, Jr.                     ║ ║
  7.  │  ╘══════════════════════════╝                                         ║ ║
  8.  │ A license is hereby granted to the holder to use this source code in  ║ ║
  9.  │ any program, commercial or otherwise,  without receiving the express  ║ ║
  10.  │ permission of the copyright holder and without paying any royalties,  ║ ║
  11.  │ as long as this code is not distributed in any compilable format.     ║ ║
  12.  │  IE: source code files, PowerBASIC Unit files, and printed listings   ║ ║
  13.  ╘═╤═════════════════════════════════════════════════════════════════════╝ ║
  14.    │                ....................................                   ║
  15.    ╘═══════════════════════════════════════════════════════════════════════╝
  16. $endif
  17.  
  18. This package contains 2 different date packing types: a 2byte system
  19. very similar to DOS's style and a 4byte system that stores the actual
  20. seconds contained in a given time.  The 2byte system has an accuracy
  21. of 2 seconds as the odd seconds are lost in the packing while the
  22. other system is accurate to the second and can assist in preforming
  23. mathematics against times.
  24.  
  25. To make things just a bit easier the naming conventions of all the
  26. routines are very standard throughout the package. HMS means Hours,
  27. Minutes, and Seconds while HM is just Hours and Minutes. The word
  28. Time$ refers to a 8 char, 24hour string, HM$ 6 char, 12 hour string,
  29. WORD is for DOS's 2byte system and DWORD is the 4byte system.
  30.  
  31. Which ever style you choose, the times can be displayed in either
  32. the 12hour or 24hour format and there are routines to allow for
  33. either 6 or 9 character display strings.
  34.  
  35. Also if you wish to allow the user to select the particular format or
  36. you wish the format to be automatically set by reading the system's
  37. Country Code both are readily available.
  38.  
  39. Just in case you require a bit more precision than a second, one of the
  40. functions is set to return the 1/100 of a second.
  41.  
  42.  
  43.  
  44.